﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QualityStormCommon;

namespace QualityStorm {
    class DataGridViewTriStateColumn : DataGridViewImageColumn {
        Permission m_DefaultStatus = Permission.None;
        public Permission Value {

            get {
                return m_DefaultStatus;
            }
            set {
                m_DefaultStatus = value;
            }
        }

        public override object Clone() {
            DataGridViewTriStateColumn column = (DataGridViewTriStateColumn) base.Clone();
            if (column != null) {
                column.Value = Value;
            }
            return column;
        }

        public override DataGridViewCell CellTemplate {
            get {
                return base.CellTemplate;
            }
            set {
                base.CellTemplate = value;
            }
        }
    }
}
